package com.pmcc.core.service;

import java.util.List;

public class JwtAuthenticationResponse  {

    private final String token;

    private  Boolean success;

    public Boolean isSuccess() {
        return success;
    }

    private String status;

    private List<String> currentAuthority;


    public JwtAuthenticationResponse(String token, List<String> currentAuthority) {
        this.token = token;
        this.success=true;
        this.status = "ok";
        this.setCurrentAuthority(currentAuthority);
    }

    public JwtAuthenticationResponse(String token) {
        this.token = token;
        this.success=true;
        this.status = "ok";
    }

    public JwtAuthenticationResponse() {
        this.token ="";
        this.status = "error";
        this.success=false;
    }

    public String getToken() {
        return this.token;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public List<String> getCurrentAuthority() {
        return currentAuthority;
    }

    public void setCurrentAuthority(List<String> currentAuthority) {
        this.currentAuthority = currentAuthority;
    }

}
